import request from '@/utils/request'

// 获取所有职位列表
export function getLegalDocumentById(id) {
  return request({
    url: '/jobPosition/jobPosition/content/'+id,
    method: 'get',
  })
}
// 获取所有职位列表
export function jobPositionList() {
  return request({
    url: '/jobPosition/jobPosition/content',
    method: 'get',
  })
}
// 查询职位发布列表
export function listJobPosition(query) {
  return request({
    url: '/jobPosition/jobPosition/list',
    method: 'get',
    params: query
  })
}

// 查询职位发布详细
export function getJobPosition(id) {
  return request({
    url: '/jobPosition/jobPosition/' + id,
    method: 'get'
  })
}

// 新增职位发布
export function addJobPosition(data) {
  return request({
    url: '/jobPosition/jobPosition',
    method: 'post',
    data: data
  })
}

// 修改职位发布
export function updateJobPosition(data) {
  return request({
    url: '/jobPosition/jobPosition',
    method: 'put',
    data: data
  })
}

// 删除职位发布
export function delJobPosition(id) {
  return request({
    url: '/jobPosition/jobPosition/' + id,
    method: 'delete'
  })
}
